/**
 * Created by lx on 2017/4/20.
 */
// 处理获取列表的reducer
import * as types from '../../constants/CreatePage'

// 列表
const list = [{
  'categoryDescription': 'REFS Mgt.',
  'categoryId': 97,
  'categoryName': 'REFS',
  'deleted': 0,
  'userCreation': 'SUNWEL',
  'userModified': null,
  'dateCreation': 1484128350000,
  'dateModified': null
},{
  'categoryDescription': 'REFS Mgt222.',
  'categoryId': 98,
  'categoryName': 'REFS222',
  'deleted': 0,
  'userCreation': 'SUNWEL',
  'userModified': null,
  'dateCreation': 1484128350000,
  'dateModified': null
}];

export default function CreatePage(state = list, action) {

  switch (action.type) {
    case types.GET_LIST:
      return state;
    default:
      return state
  }
}
